import type { PaginationProps } from 'naive-ui'
import type { NvCrudOption } from '../types'
import type { RowData, Size } from '@/types'

export interface NvCrudLayoutProps {
  data: RowData[]
  option: NvCrudOption
  pagination?: PaginationProps
  checkedRowKeys: string[]
  searchForm: RowData
  searchVisible: boolean
  loading: boolean
  size: Size
}

export interface NvCrudLayoutEmits {
  (e: 'trigger', eventName: string, ...args: any[]): void
}
